<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('Order/data_list')}" method="post">
        <div class="bjui-searchBar">
            <input type="hidden" name="us_id" value="{:I('us_id')}">
            <label>订单状态:</label>
            <select name="or_status" id="or_status" data-toggle="selectpicker">
                <option value="">全部</option>
                <option value="0">待处理</option>
                <option value="1">处理中</option>
                <option value="2">完成</option>
            </select>&nbsp;
            <script type="text/javascript">
                var or_status = "{:I('or_status')}";
                $("#or_status option[value='"+or_status+"']").attr("selected",true);
            </script>
            <label>订单序列号：</label><input type="text" id="search_words" value="{$search_words}" name="search_words" class="form-control" size="10">&nbsp;
            <label>游戏账号：</label><input type="text" id="search_account" value="{$search_account}" name="search_account" class="form-control" size="10">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <if condition="$or_user_id==null">
            <div class="pull-right">
                <button class="btn btn-green" data-url="{:U('Order/unifiedRecharge')}" data-toggle="dialog" data-width="500" data-height="150" data-icon="plus-square-o">统一充值</button>
            </div>
            </if>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
            <tr>
                <th data-order-field="or_id">编号</th>
                <th data-order-field="or_serial_number">订单号</th>
                <th data-order-field="or_device_id">设备ID</th>
                <th>订单状态</th>
                <th>VIP设备</th>
                <th>游戏账号</th>
                <th>游戏密码</th>
                <th>金牌</th>
                <th>银牌</th>
                <th>铜牌</th>
                <th>版本</th>
                <th>用户ID</th>
                <th data-order-field="or_create_time">创建时间</th>
                <th data-order-field="or_end_time">结束时间</th>
                <th>结束原因</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <volist name="dataList" id="dl">
                <tr data-id="1">
                    <td>{$dl['or_id']}</td>
                    <td>{$dl['or_serial_number']}</td>
                    <td>{$dl['or_device_id']|default='---'}</td>
                    <td>{$dl['or_status_name']}</td>
                    <td>{$dl['or_vip']==1?'是':'否'}</td>
                    <td>{$dl['or_account']}</td>
                    <td>{$dl['or_password']}</td>
                    <td>{$dl['or_gold_medal']}</td>
                    <td>{$dl['or_silver_medal']}</td>
                    <td>{$dl['or_bronze_medal']}</td>
                    <td>{$dl['or_version']}</td>
                    <td>{$dl['or_user_id']}</td>
                    <td>{$dl['or_create_time']|date="Y-m-d H:i:s",###}</td>
                    <td>
                        <if condition="$dl['or_end_time']!=null">
                            {$dl['or_end_time']|date="Y-m-d H:i:s",###}
                        <else />---
                        </if>
                    </td>
                    <td>{$dl['or_end_msg']|default='---'}</td>
                    <td><a data-url="{:U('Order/order_log_list',array('order_id'=>$dl['or_id']))}" class="btn btn-green" data-toggle="navtab" data-id='index-form1' data-tabid='index-form2'>查看日志</a></td>
                </tr>
            </volist>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共{$count}条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$count}" data-page-size="30" data-page-current="1">
    </div>
</div>